import { GridHelper, AxesHelper } from 'three'

function createGridHelper(scene){
    const gridHelper = new GridHelper(9000, 100, "#ff00ff", "#00ff00");  // 网格地面
    gridHelper.material.opacity = 0.5;  // 网格透明度
    gridHelper.material.transparent = true;
    gridHelper.position.set(0,0,0)
    scene.add(gridHelper);  // 场景添加网格
}

function createAxesHelper(scene){
    // AxesHelper：辅助观察的坐标系
    const axesHelper = new AxesHelper(5000);
    scene.add(axesHelper);
}

export { createGridHelper, createAxesHelper };